<@admin.html >
<div class="title">
<h1>添加街拍</h1>
	<span class="tTip">标注"<em>*</em>"为必填项</span>
</div>
<div class="box">
	<div class="inner">
		<div class="tx_table">
			<h2>编辑街拍</h2>
			<form name="saveForm" id="saveForm" action="${base}/admin/candid/index!save" method="post">
				<#if (candid??)&&(candid.id??)><input type="hidden" name="candid.id" value="${(candid.id?c)!}"/></#if>
				<#if (candid.createDate)??><input type="hidden" name="candid.createDate" value="${candid.createDate?string("yyyy-MM-dd")!}"/></#if>
				<input id="hidden_1" type="hidden" name="candid.path" value="${(candid.path)!}"/>
				<input id="hidden_2" type="hidden" name="candid.path1" value="${(candid.path1)!}"/>
				<input id="hidden_3" type="hidden" name="candid.path2" value="${(candid.path2)!}"/>
				<input id="hidden_4" type="hidden" name="candid.path3" value="${(candid.path3)!}"/>
			<div class="data">
				<table>
					<colgroup width="24%"></colgroup>
					<tbody>
						<tr>
							<th>街拍标题：</th>
							<td>
								<input class="Q" type="text" name="candid.title" id="news_title" size="32" value="${(candid.title)!}"/>
								<span id="news_titleTip"></span>
							</td>
						</tr>
						<tr>
							<th>街拍图片：</th>
							<td class="tx_sender" style="text-align:left;">
								<input id="upload_1" class="F" name="upload" type="file" value="" onChange="return ajaxMultipleFileUpload(this);"/>
								<img id="loading" src="" style="display:none;">
							</td>
						</tr>
						<tr>
							<th>图片预览(用鼠标滑动图片进行裁剪)：</th>
							<td>
								<div>
									<img onClick="openCut(this,'hidden_1');" id="imgshow_1" width="474px" height="198px" src="<#if (candid??)&&(candid.path)??>${(candid.path)!}<#else>${statics}/plugins/fileupload/pic_upload_default.jpg</#if> " class="multiple_img"/>
								</div>
								<div>
									<img onClick="openCut(this,'hidden_2');" id="imgshow_2" width="474px" height="198px" src="<#if (candid??)&&(candid.path1)??>${(candid.path1)!}<#else>${statics}/plugins/fileupload/pic_upload_default.jpg</#if> " class="multiple_img"/>
								</div> 
								<div>
									<img onClick="openCut(this,'hidden_3');" id="imgshow_3" width="474px" height="198px" src="<#if (candid??)&&(candid.path2)??>${(candid.path2)!}<#else>${statics}/plugins/fileupload/pic_upload_default.jpg</#if> " class="multiple_img"/>
								</div>
								<div>
									<img onClick="openCut(this,'hidden_4');" id="imgshow_4" width="474px" height="198px" src="<#if (candid??)&&(candid.path3)??>${(candid.path3)!}<#else>${statics}/plugins/fileupload/pic_upload_default.jpg</#if> " class="multiple_img"/>
								</div> 
							</td>
						</tr>

						<tr>
							<th>详细内容：</th>
							<td><div id="news_content"><textarea name="candid.describe">${(candid.describe)!}</textarea></div></td>
						</tr>
					</tbody>
				</table>
				<div class="tx_sender">
						<input class="step" type="submit" value="保 存" />
				</div>
			</div>
			</form>
		</div>
	</div>
</div>
<#include "/WEB-INF/content/tag/cut.ftl">
<script type="text/javascript">
	window.onload = function() {	
		var oFCKeditor = new FCKeditor( 'candid.describe' ) ;
		oFCKeditor.BasePath = "${statics}/plugins/editor/fckeditor/"
		oFCKeditor.ReplaceTextarea() ;
	}
</script>
</@admin.html >